package com.bee.bootstrap.config;

import com.bee.bootstrap.plugs.privilege.PrivilegeViewConverter;
import com.bee.common.core.jsonview.ViewAwareJsonMessageConverter;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

import java.util.List;

@Configuration
public class WebConfiguration extends WebMvcConfigurerAdapter {

    @Override
    public void configureMessageConverters(List<HttpMessageConverter<?>> converters) {
        //数据权限配置
        converters.add(new PrivilegeViewConverter());
//        converters.add(new ViewAwareJsonMessageConverter());
    }

}
